import { createRouter, createWebHashHistory } from 'vue-router'
import Home from './../components/Home.vue'
import Welcome from './../components/Welcome.vue'
import Login from './../components/Login.vue'
const router = [
    {
        name: 'home',
        path: '/',
        component: Home,
        redirect: Welcome,
        children: {
            name: 'welcome',
            path: '/welcome',
            component: Welcome
        },
        {
            name: 'login',
            path: '/login',
            component:  Login
        }
    }
]

